package ATBMS.view.user;

import ATBMS.modles.Flight;
import ATBMS.modles.Ticket;
import ATBMS.modles.User;
import java.util.List;

/**
 * User View Interface
 */
public interface UserViewInterface {

    /**
     * View Mode
     */
    public final static int USERVIEWTABLEMODE_TICKET = 1;
    public final static int USERVIEWTABLEMODE_FLIGHTS = 2;

    /**
     * Show Message Box
     * @param s
     */
    public void alert(String s);

    /**
     * Show Confirm Dialog
     * @param s
     * @return
     */
    public boolean confirm(String s);

    /**
     * Show input dialog
     * @param s
     * @return
     */
    public String inputDialog(String s);

    /**
     * Get Selected Flight Code
     * @return
     */
    public String getSelectedFlightCode();

    /**
     * Set Table Mode
     * @param mode
     */
    public void setTableMode(int mode);

    /**
     * Get Table Mode
     * @return Table Mode
     */
    public int getTableMode();

    /**
     * Show Tickets
     * @param tickets
     */
    public void listTickets(List<Ticket> tickets);

    /**
     * Show Flights
     * @param flights
     */
    public void listFlight(List<Flight> flights);
}
